package com.estun.backroundManagementService.modules.material.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 物料工位关系表
 * </p>
 *
 * @author machine
 * @since 2023-02-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("material_position_relation")
@ApiModel(value="MaterialPositionRelation对象", description="物料工位关系表")
public class MaterialPositionRelation implements Serializable {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "物料ID")
    private Long materialId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工位ID")
    private Long positionId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "上料口ID")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long feedingPortId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
